<?php
// +----------------------------------------------------------------------
// | XiaMiCMF - 代码如诗
// +----------------------------------------------------------------------
// | Copyright (c) 2015-2016 http://shujuwajue.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小虾米 <509129@qq.com>
// +----------------------------------------------------------------------
namespace Admin\Model;

use Common\Model\CommonModel;

class AuthRoleUserModel extends CommonModel
{
    public function getRoleIdsByAdminId($admin_id) {
        //返回的是一个role_id数组
        return $this->where(array('admin_id' => $admin_id))->getField('role_id', true);
    }
}

?>